<?php
    class ProductEntity
    {
        var $Code_s = "";
        var $Name_s = "";
        var $Description_s = "";
        var $ImageSrc_s = "";
        var $Color_s = "";
        var $PostedDay_dt = "";
        var $Price_f = 0;
        var $Bought_i = 0;
        var $CategoryID_i = 0;

        function ProductEntity($code, $name, $description, $imageSrc, $color, $postedDay, $price, $bought, $categoryID)
        {
            $this->Code_s = $code;
            $this->Name_s = $name;
            $this->Description_s = $description;
            $this->ImageSrc_s = $imageSrc;
            $this->Color_s = $color;
            $this->PostedDay_dt = $postedDay;
            $this->Price_f = $price;
            $this->Bought_i = $bought;
            $this->CategoryID_i = $categoryID;
        }
        
    }
?>